<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">

        <title>${self.title(True)}</title>
        ${self.doc_head()}
        ${self.ga()}
    </head>
    <body>
        ${self.doc_body()}
    </body>
</html>

<%def name="header()">
<a class="brand" href="/" style="font:30px Casual,sans-serif;"><strong>Diantu</strong><b>电兔</b></a>
    <ul class="nav">
    </ul>
</%def>
<%def name="mbody()"></%def>
<%def name="footer()"></%def>
<%def name="doc_body()">
    <div class="navbar navbar-fixed-top">
        <div class="navbar-inner">
            <div class="container">
                ${self.header()}
            </div>
        </div>
    </div>
    <div class="container">${self.mbody()}</div>
    <div class="footer">${self.footer()}</div>
</%def>

<%def name="title(head)">Diantu</%def>
<%def name="more_header()"></%def>
<%def name="more_meta()"></%def>

<%def name="ga()">
<script type="text/javascript">
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-33108982-1']);
  _gaq.push(['_setDomainName', 'diantu.org']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>
</%def>

<%def name="css()">
body {
    position: relative;
    padding-top: 90px;
    background-color: #fff;
    background-position: 0 40px;
}
</%def>
<%def name="js()"></%def>
<%def name="doc_head()">
    <meta http-equiv="Pragma" content="no-cache">
    <meta http-equiv="Expires" content="Sun, 6 Mar 2005 01:00:00 GMT">
    ${self.more_meta() | n}
    <link href="/static/css/lib/bootstrap.min.css" rel="stylesheet" type="text/css">
    <style type="text/css">${self.css()}</style>
    <script src="/static/js/lib/jquery.1.7.1.min.js"></script>
    <script src="/static/js/lib/bootstrap.min.js"></script>
    ${self.more_header() | n}
    <!-- COLLECTED CSS -->
    <script>${self.js()}</script>
</%def>
